<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title><?=$this->settings["webName"] ?>-官方网站</title>
<meta name="keywords" content="">
<meta nam="description" content="">
<meta name="renderer" content="webkit">
<link href="favicon.ico" mce_href="favicon.ico" rel="icon" type="image/x-icon" />
<link rel="stylesheet" href="/css/nsc/home/reset.css?v=1.17.1.13">
<link rel="stylesheet" href="/css/nsc/home/theme.css?v=1.17.1.13">
<link href="/css/nsc/plugin/dialogUI/dialogUI.css?v=1.17.1.13" media="all" type="text/css" rel="stylesheet">
<script>var TIP=true;</script>
<script type="text/javascript" src="/skin/js/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="/skin/main/onload.js"></script>
<script type="text/javascript" src="/newskin/js/function.js"></script>
<script type="text/javascript" src="/skin/layer/layer.js"></script>
<script type='text/javascript'>
function zxkf(){
     <?php if($this->settings['kefuStatus']){ ?>
    layer.open({
      type: 2,
      area: ['800px', '550px'],
      zIndex:1999,
      //fixed: false, //不固定
      title:'在线客服',
      scrollbar: false,//屏蔽滚动条
      //maxmin: true,
      content:'<?=$this->settings['kefuGG']?>'
    });
    <?php }else{?>
    $.alert("客服系统维护中");
    <?php }?>
    return false;
}
function qqkf(){
    <?php if($this->settings['qqkefuStatus']){ ?>
    layer.open({
      type: 2,
      area: ['800px', '550px'],
      zIndex:1999,
      //fixed: false, //不固定
      title:'在线客服',
      scrollbar: false,//屏蔽滚动条
      //maxmin: true,
      content:'//wpa.qq.com/msgrd?uin=<?=$this->settings['qqkefuGG']?>'
    });
    <?php }else{?>
    $.alert("客服系统维护中");
    <?php }?>
    return false;
}
</script>
</head>
<body>
<div class="header">
  <div class="top">
    <?php $this->display('inc_top_header.php'); ?>
    <div class="clear"></div>
  </div>
</div>
<div class="navbar navChoose">
  <div class="content">
    <?php $this->display('inc_top_nav.php'); ?>
    <div class="fr"></div>
  </div>
  <div class="clear"></div>
</div>
<link href="/css/nsc/warp.css" rel="stylesheet" type="text/css" />
<div id="mainbody">
  <div class="warp lotteryBox">
    <div class="banner">
      <ul class="rslides f980x240 rslides1" style="max-width: 980px;">
        <li id="rslides1_s2" class="" style="display: none; float: none; position: absolute;"> <a href="/?controller=promotions&amp;action=main&amp;tag=extremepoints#"> <img src="/images/uploads/1/3.jpg"> </a> </li>
        <li id="rslides1_s3" class="" style="display: none; float: none; position: absolute;"> <a href=" /?nav=pk10&amp;flaglot=pk10#"> <img src="/images/uploads/1/4.jpg"> </a> </li>
        <li id="rslides1_s4" style="display: none; float: none; position: absolute;"> <a href="/?nav=activity&amp;tag=viewactivity&amp;template=4#"> <img src="/images/uploads/1/5.jpg"> </a> </li>
      </ul>
      <a href="#" class="rslides_nav rslides1_nav prev">&lt;</a><a href="#" class="rslides_nav rslides1_nav next">&gt;</a> </div>
    <div class="hall_cont">
      <div class="cp_game">
        <div class="cp_title">
          <h1 class="fl"><i class="ic-tt8game"></i> 彩票游戏</h1>
          <div class="clear"></div>
        </div>
        <div class="cp_g_list">
          <ul>
            <li class="cp_list_01" id="lottery_L-25"> <span class="index_icon_new"></span> <em class="cp_l_alpha"></em> <a href="/index.php/index/game/80/双色球"> <span class="shuangseqiu_logo"></span> 
              <!--<div class="mmc_ggtit">全新彩种 即将上线</div>-->
              <p>距<span class="issue">下一期</span>销售截止</p>
              <div class="cp_time_01">
                <?php $this->display('cai_shuangseqiu.php'); ?>
              </div>
              <span class="cp_g_xh">立即投注</span> </a> </li>
            <li class="cp_list_02" id="lottery_L-1"> <em class="cp_l_alpha"></em> <a href="/index.php/index/game/1/2/12/重庆时时彩"> <span class="cqssc_logo"></span>
              <p>距<span class="issue">下一期</span>销售截止</p>
              <div class="cp_time_01">
                <?php $this->display('cai_cq.php'); ?>
              </div>
              <span class="cp_g_xh">立即投注</span> </a> </li>
            <li class="cp_list_03" id="lottery_L-19"> <em class="cp_l_alpha"></em> <a href="/index.php/index/game/14/59/193/河内5分彩"> <span class="hnquick5_logo"></span>
              <p>距<span class="issue">下一期</span>销售截止</p>
              <div class="cp_time_01">
                <?php $this->display('cai_5fc.php'); ?>
              </div>
              <span class="cp_g_xh">立即投注</span> </a> </li>
            <li class="cp_list_04" id="lottery_L-23"> <em class="cp_l_alpha"></em> <a href="/index.php/index/game/5/59/193/河内1分彩"><span class="hnffc_logo"></span></a> </li>
            <li class="cp_list_05" id="lottery_L-24"> <em class="cp_l_alpha"></em> <a href="/index.php/index/game/60/2/12/天津时时彩"><span class="tjssc_logo"></span></a> </li>
            <li class="cp_list_06"> <em class="cp_l_alpha"></em> <a href="/index.php/index/game/12/2/12/新疆时时彩"><span class="xjssc_logo"></span></a> </li>
            <li class="cp_list_07"> <em class="cp_l_alpha"></em> <a href="/index.php/index/game/79/39/江苏快三"><span class="jsk3_logo"></span></a> </li>
            <li class="cp_list_08"> <em class="cp_l_alpha"></em> <a href="/index.php/index/game/6/广东11选5"><span class="gd11x5_logo"></span></a> </li>
            <li class="cp_list_09"> <em class="cp_l_alpha"></em> <a href="/index.php/index/game/9/3D福彩"><span class="sdfc_logo"></span></a> </li>
          </ul>
          <div class="clear"></div>
        </div>
        <div class="newBox">
          <h2><i class="ic-ttHot"></i>&nbsp;彩票资讯</h2>
          <ul class="news_list" style="    border-right: 1px dotted #DDD;    margin-right: 12px;">
            <?php foreach ($args[0]["news"]['data'] as $i=>$r) { ?>
            <?php if($i === 6) { ?>
          </ul>
          <ul class="news_list">
            <?php } ?>
            <li <?php if($i==0){ echo 'class="first"';} ?>><a href="/index.php/news/info?id=<?= $r['id'] ?>" target="_blank">
              <?=$r["title"] ?>
              </a></li>
            <?php } ?>
          </ul>
          <div class="clear"></div>
        </div>
      </div>
      <div class="gongao">
        <div class="cp_title">
          <h1 class="fl"> <i class="ic-ttNotice"></i> 平台公告 <a   href="/index.php/notice/info">/ 更多</a> </h1>
          <div class="clear"></div>
        </div>
        <div class="gg_list">
          <ul>
            <?php
              $bool = true;
              foreach ($args[0]["notice"]['data'] as $var) {
                if ($bool) {
                  $bool = false;
                  $val  = $var;
                }

                $cout += 1;
                $mod = $cout % 2;
            ?>
            <li>· <a title="系统公告" href="javascript:;" class="notice" url="/index.php/notice/view/<?= $var['id'] ?>">
              <?= $var['title'] ?>
              </a> <span>
              <?=date('Y-m-d', $var['addTime'])?>
              </span> </li>
            <?php } ?>
          </ul>
        </div>
      </div>
      <div class="gongao">
        <div class="cp_title">
          <h1 class="fl"> <i class="ic-ttNotice"></i> 中奖排行</h1>
          <div class="clear"></div>
        </div>
        <div class="gg_list paihang">
          <?php
            $sql = "select * from(select u.username, u.coin, u.uid, SUM(b.bonus) as bonus from caipiao_members u, caipiao_bets b WHERE u.uid=b.uid and b.isDelete=0 GROUP BY b.uid) as t WHERE bonus > 0 ORDER BY bonus DESC";
              $rankUserData = $this->getPage($sql, 1, 7);
          ?>
          <ul>
            <?php
              if($rankUserData){
                foreach ($rankUserData["data"] as $n=> $r) {
            ?>
            <li><i <?php if(in_array($n,array(0,1,2))){ echo 'class="i1"';} ?>><?php echo $n+1;?></i><a><?=mb_substr($r['username'], 0, 2, "UTF-8") ?>***</a><span class="fr"><?=$r["bonus"] ?>元</span></li>
            <?php
                }
              }
            ?>
          </ul>
        </div>
      </div>
      <div class="gongao">
        <div class="cp_title">
          <h1 class="fl"> <i class="ic-ttNotice"></i> 最新中奖</h1>
          <div class="clear"></div>
        </div>
        <div class="gg_list paihang">
          <?php
            $sql = "select u.username, u.coin, u.uid, SUM(b.mode * b.beiShu * b.actionNum) as zjAmount, t.id AS typeId, t.shortName from caipiao_members u, caipiao_bets b, caipiao_type t WHERE u.uid = b.uid and b.isDelete = 0 AND b.`type` = t.id GROUP BY b.uid ORDER BY b.id DESC, zjAmount DESC";
              $rankUserData = $this->getPage($sql, 1, 7);
          ?>
          <ul>
            <?php
              if($rankUserData){
                foreach ($rankUserData["data"] as $n=>$r) {
            ?>
            <li><i <?php if(in_array($n,array(0,1,2))){ echo 'class="i1"';} ?>><?php echo $n+1;?></i><a href="/index.php/index/game/<?=$r["typeId"] ?>/<?=$r["shortName"] ?>">[<?=$r["shortName"] ?>]<?=mb_substr($r['username'], 0, 2, "UTF-8") ?>***<span class="fr"><?=$r["zjAmount"] ?>元</span></a></li>
            <?php
                }
              }
            ?>
          </ul>
        </div>
      </div>
      <div class="clear"></div>
    </div>
  </div>
  <?php $this->display('inc_left_sidebar_lotterylist.php'); ?>
  <script type="text/javascript" src="/js/nsc/coreDesign.js?v=1.16.11.5"></script> 
  
  <!--侧边栏--> 
</div>
<link rel="stylesheet" href="/css/nsc/foot.css?v=1.17.1.13">
<script type="text/javascript" src="/images/down/swfobject.js?v=1.17.1.13"></script>
<div class="login_footer">
  <div class="warp980">
    <div class="img"></div>
    <div class="clearfix">
      <p class="t-left"> 浏览器建议：首选为Google浏览器，其次为火狐和IE9或IE10浏览器<br>
        分辨率建议：使用1024×768以上的分辨率 </p>
      <p class="t-right"> 未满18周岁禁止购买<br>
        Copyright © ttflcp1.com <?=date("Y") ?> <?=$this->settings["webName"] ?> 版权所有</p>
    </div>
  </div>
</div>
<div class="sidebar" id="sidebar"> <a href="/index.php" class="sidebar-div home"><i class="ic-home"></i>回到首页</a> <a  href="//wpa.qq.com/msgrd?uin=<?=$this->settings['qqkefuGG']?>" target="_blank" class="sidebar-div"><i class="ic-online"></i>在线客服</a> <a href="javascript:;" class="sidebar-div" id="sidebarGoTop"><i class="ic-top"></i>返回顶部</a> </div>
<link rel="stylesheet" type="text/css" href="/css/nsc/guide.css?v=1.17.1.13">
<div class="guide guide_new">
  <div class="guide-mask"></div>
  <div class="guide-container">
    <div class="guide-content">
      <div class="step step_00 active"> </div>
      <div class="step step_01">
        <div class="line line-top"></div>
        <div class="line line-right"></div>
        <div class="line line-bottom"></div>
        <div class="line line-left"></div>
      </div>
      <div class="step step_02">
        <div class="line line-top"></div>
        <div class="line line-right"></div>
        <div class="line line-bottom"></div>
        <div class="line line-left"></div>
      </div>
      <div class="step step_03">
        <div class="line line-top"></div>
        <div class="line line-right"></div>
        <div class="line line-bottom"></div>
        <div class="line line-left"></div>
      </div>
      <div class="guide-close"></div>
      <div class="guide-btn"></div>
      <div class="guide-dots">
        <ul>
          <li class="active"></li>
          <li></li>
          <li></li>
          <li></li>
        </ul>
      </div>
    </div>
  </div>
</div>
<!-- 切换背景功能 --> 
<!-- 公共开放导航弹窗 -->
<div id="v-dalog" class="v-dalog">
  <div class="v-bg"></div>
  <span class="v-cn">近期开放，敬请期待</span> </div>
<span class="global-close"></span> 
<script type="text/javascript" src="/js/nsc/velocity.min.js?v=1.17.1.13"></script> 
<script type="text/javascript" src="/js/nsc/zr-script.js?v=1.17.1.13" charset="utf-8"></script> 
<script type="text/javascript" src="/js/nsc/jquery-slides.js?v=1.17.1.13"></script> 
<script type="text/javascript" src="/js/nsc/dialogUI/jquery.dialogUI.js?v=1.17.1.13"></script> 
<script type="text/javascript" src="/js/nsc/main.js?v=1.17.1.13"></script> 
<script type="text/javascript" src="/js/nsc/soundBox.js?v=1.17.1.13"></script> 
<script type="text/javascript">
  $(function(){
    var $content = $(".xc_menu");
    var i = 5;  //已知显示的li元素的个数
    var m = 5;  //用于计算的变量
    var count = $content.find("li").length;//总共的li元素的个数
    $(".xc_next").click(function(){
      if( !$content.is(":animated")){
        if(m<count){  //判断 i 是否小于总的个数
          m++;
          $content.animate({left: "-=186px"}, 600);
        }
      }
    });

    $(".xc_prev").click(function(){
      if(!$content.is(":animated")){
        if(m>i){ //判断 i 是否小于总的个数
          m--;  
          $content.animate({left: "+=186px"}, 600);
        }
      }
    });
  });
</script>
</body>
</html>